import request from '@/utils/request'

// 查询班级解锁记录列表
export function listUnlock(data) {
  return request({
    url: '/school/unlock/list',
    method: 'post',
    data: data
  })
}

// 查询班级解锁记录详细
export function getUnlock(id) {
  return request({
    url: '/school/unlock/' + id,
    method: 'get'
  })
}

// 新增班级解锁记录
export function addUnlock(data) {
  return request({
    url: '/school/unlock/add',
    method: 'post',
    data: data
  })
}

// 修改班级解锁记录
export function updateUnlock(data) {
  return request({
    url: '/school/unlock/edit',
    method: 'post',
    data: data
  })
}

// 删除班级解锁记录
export function delUnlock(id) {
  return request({
    url: '/school/unlock/remove/' + id,
    method: 'post'
  })
}
